#define _CRT_SECURE_NO_WARNINGS

#include"mymap.hpp"
#include"myset.hpp"
#include<vector>
#include<iostream>
using namespace std;





void test01()
{
	srand(time(nullptr));
	mymap::map<int,int> a;
	int n = 1000000;
	while (n--)
	{
		int x = rand();
		
		a[rand() * x] = 20;
	}
	/*for (int i = 0; i < n; i++)
	{
		a.insert(i);
	}*/
	cout << a.size() << endl;
}

int main()
{
	//vector<int> v = { 1,23,5,5,5,732,13,13,53,13,535,5 };
	//myset::set<int> m;
	//int i = 0;
	//for (auto e : v)
	//{
	//	m.insert(e);
	//}
	//const myset::set<int> m2(m);
	////m2.swap(m);
	//myset::set<int>::const_iterator it = m2.end();
	//cout << m2.empty() << endl;
	//cout << m2.size() << endl;
	//
	////cout << (m2.find(535))->first << endl;
	//while (it != m2.begin())
	//{
	//	it--;
	//	cout <<*it<< endl;
	//}
	test01();
	return 0;
}